﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/OpenDelib.Master" CodeBehind="ListeRapports.aspx.vb" Inherits="OpenDelib.ListeRapports" %>
<%@ Register TagPrefix="cc1" Namespace="Odyssee.WebControles" Assembly="Odyssee.WebControles" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">    
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="toolbar" runat="server">   
    <hr/>
    <cc1:ToolBar ID="tbDossiers" runat="server" CssClass="toolbar">
        <items>
            <cc1:ToolBarTextImageButton ID="btnActualiser" runat="server" Text="Actualiser" ImageWidth="20" ImageHorizontalOffset="4" ImageUrl="~/Images/refresh_white_20.png" />
            <cc1:ToolBarSeparator ID="tbSep1" runat="server" Offset="2" />
            <cc1:ToolBarTextImageButton ID="btnAjouterDossier" runat="server" Text="Créer un rapport" ImageWidth="20" ImageHorizontalOffset="4" ImageUrl="~/Images/plus_white_20.png"/>
        </items>
    </cc1:ToolBar> 
    <hr/>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="content" runat="server">
    <link rel="stylesheet" href="../CSS/Tabs.css" />
    
    <div id="tabs" runat="server" >
        
    </div>

    <asp:HiddenField ID="hfIndexTabs" runat="server" Value="1" /> 

    <script>
        $(document).ready(function () {
            Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(function () {
                // par défaut, l'index tabs vaut 1 (Suivi)
                var indexSaved = document.getElementById('<%=hfIndexTabs.ClientID%>').value
                $("#<%=tabs.ClientID%>").tabs({
                    active:indexSaved,
                    activate: function(event, ui)
                    {
                        document.getElementById('<%=hfIndexTabs.ClientID%>').value = ui.newTab.parent().children().index(ui.newTab);
                    }
                });
            });
        });
    </script>
</asp:Content>
